\doxysection{GMesh.\+h}
\hypertarget{mesh_2include_2_g_mesh_8h_source}{}\label{mesh_2include_2_g_mesh_8h_source}\index{mesh/include/GMesh.h@{mesh/include/GMesh.h}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{preprocessor}{\#pragma\ once}}
\DoxyCodeLine{00002\ }
\DoxyCodeLine{00003\ \textcolor{preprocessor}{\#include\ <fstream>}}
\DoxyCodeLine{00004\ \textcolor{preprocessor}{\#include\ <string>}}
\DoxyCodeLine{00005\ \textcolor{preprocessor}{\#include\ <vector>}}
\DoxyCodeLine{00006\ \textcolor{preprocessor}{\#include\ <sstream>}}
\DoxyCodeLine{00007\ }
\DoxyCodeLine{00008\ \textcolor{keyword}{typedef}\ \textcolor{keywordtype}{unsigned}\ \textcolor{keywordtype}{int}\ uint;}
\DoxyCodeLine{00009\ }
\DoxyCodeLine{00010\ \textcolor{keyword}{class\ }\mbox{\hyperlink{class_g_mesh}{GMesh}}\{\ \ \textcolor{comment}{//\ Gmsh类是用来提取Gmsh网格文件中的网格信息}}
\DoxyCodeLine{00011\ \textcolor{keyword}{private}:}
\DoxyCodeLine{00012\ \ \ \ \ uint\ numEntityBlocks,\ numNodes,\ minNodeTag,\ maxNodeTag;}
\DoxyCodeLine{00013\ \ \ \ \ uint\ entityDim,\ entityTag,\ parametric,\ numNodesInBlock;}
\DoxyCodeLine{00014\ \ \ \ \ uint\ numElements,\ minElementTag,\ maxElementTag;}
\DoxyCodeLine{00015\ \ \ \ \ uint\ elementType,\ numElementsInBlock;}
\DoxyCodeLine{00016\ \ \ \ \ std::vector<uint>\ selectedNodes,\ selectedElements;}
\DoxyCodeLine{00017\ \ \ \ \ std::vector<std::vector<double>>\ coord\{\};}
\DoxyCodeLine{00018\ \ \ \ \ std::vector<std::vector<uint>>\ element\_P\{\};}
\DoxyCodeLine{00019\ \ \ \ \ std::vector<std::vector<uint>>\ element\_L\{\};}
\DoxyCodeLine{00020\ \ \ \ \ std::vector<std::vector<uint>>\ element\_S\{\};}
\DoxyCodeLine{00021\ \ \ \ \ std::vector<std::vector<uint>>\ element\_V\{\};}
\DoxyCodeLine{00022\ }
\DoxyCodeLine{00023\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00024\ \ \ \ \ \mbox{\hyperlink{class_g_mesh}{GMesh}}();}
\DoxyCodeLine{00025\ \ \ \ \ \mbox{\hyperlink{class_g_mesh}{\string~GMesh}}()\{\}}
\DoxyCodeLine{00026\ }
\DoxyCodeLine{00027\ \ \ \ \ \textcolor{keywordtype}{void}\ getMesh(std::string\ filename);}
\DoxyCodeLine{00028\ \ \ \ \ \textcolor{keywordtype}{void}\ clearMesh();}
\DoxyCodeLine{00029\ \ \ \ \ std::vector<std::vector<double>>\ getcoord()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ coord;\ \}}
\DoxyCodeLine{00030\ \ \ \ \ std::vector<std::vector<uint>>\ getelement\_P()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ element\_P;\ \}}
\DoxyCodeLine{00031\ \ \ \ \ std::vector<std::vector<uint>>\ getelement\_L()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ element\_L;\ \}}
\DoxyCodeLine{00032\ \ \ \ \ std::vector<std::vector<uint>>\ getelement\_S()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ element\_S;\ \}}
\DoxyCodeLine{00033\ \ \ \ \ std::vector<std::vector<uint>>\ getelement\_V()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ element\_V;\ \}}
\DoxyCodeLine{00034\ \ \ \ \ uint\ getnumNodes()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ numNodes;\ \}}
\DoxyCodeLine{00035\ \ \ \ \ uint\ getnumElements()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ numElements;\ \}}
\DoxyCodeLine{00036\ \ \ \ \ \textcolor{keywordtype}{void}\ setselectedNodes(std::vector<uint>\ selectedNodes)\ \{\ this-\/>selectedNodes\ =\ selectedNodes;\ \}}
\DoxyCodeLine{00037\ \ \ \ \ \textcolor{keywordtype}{void}\ setselectedElements(std::vector<uint>\ selectedElements)\ \{\ this-\/>selectedElements\ =\ selectedElements;\ \}}
\DoxyCodeLine{00038\ \ \ \ \ std::vector<uint>\ getselectedNodes()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ selectedNodes;\ \}}
\DoxyCodeLine{00039\ \ \ \ \ std::vector<uint>\ getselectedElements()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ selectedElements;\ \}}
\DoxyCodeLine{00040\ \};}

\end{DoxyCode}
